<?php /*a:1:{s:27:"admin/view/index\index.html";i:1527129693;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title><?php echo htmlentities($web['web']); ?>-后台管理系统</title>
    <link rel="stylesheet" href="/static/frame/layui/css/layui.css">
    <link rel="stylesheet" href="/static/frame/static/css/style.css">
    <link rel="icon" href="/static/frame/static/image/code.png">
</head>
<body>
{__ROOT__}
<!-- layout admin -->
<div class="layui-layout layui-layout-admin"> <!-- 添加skin-1类可手动修改主题为纯白，添加skin-2类可手动修改主题为蓝白 -->
    <!-- header -->
    <div class="layui-header my-header">
        <a href="<?php echo url('admin/partition/index'); ?>" target="iframe" >
            <!--<img class="my-header-logo" src="" alt="logo">-->
            <div class="my-header-logo"><?php echo htmlentities($web['web']); ?>后台</div>
        </a>
        <div class="my-header-btn">
            <button class="layui-btn layui-btn-small btn-nav"><i class="layui-icon layui-icon-more"></i></button>
        </div>

        <!-- 顶部左侧添加选项卡监听 -->
        <ul class="layui-nav" lay-filter="side-top-left">
            <!--<li class="layui-nav-item"><a href="javascript:;" href-url="demo/btn.html"><i class="layui-icon">&#xe621;</i>按钮</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;"><i class="layui-icon">&#xe621;</i>基础</a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" href-url="demo/btn.html"><i class="layui-icon">&#xe621;</i>按钮</a></dd>
                    <dd><a href="javascript:;" href-url="demo/form.html"><i class="layui-icon">&#xe621;</i>表单</a></dd>
                </dl>
            </li>-->
        </ul>

        <!-- 顶部右侧添加选项卡监听 -->
        <ul class="layui-nav my-header-user-nav" lay-filter="side-top-right">
            <!-- <li class="layui-nav-item"><a href="javascript:;" class="pay" href-url="">支持作者</a></li> -->
<!--             <li class="layui-nav-item">
                <a class="name" href="javascript:;"><i class="layui-icon layui-icon-chart-screen"></i>主题</a>
                <dl class="layui-nav-child">
                    <dd data-skin="0"><a href="javascript:;">默认</a></dd>
                    <dd data-skin="1"><a href="javascript:;">纯白</a></dd>
                    <dd data-skin="2"><a href="javascript:;">蓝白</a></dd>
                </dl>
            </li> -->
            <li class="layui-nav-item">
                <a class="name" href="javascript:;"><img src="/static/frame/static/image/code.png" alt="logo"> <?php echo cookie('write'); ?> </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" href-url="<?php echo url('admin/User/userinfo'); ?>"><i class="layui-icon layui-icon-username"></i>个人信息</a></dd>
                     <dd><a href="<?php echo url('admin/Login/loginOut'); ?>"><i class="layui-icon layui-icon-close"></i>退出</a></dd>
                </dl>
            </li>
        </ul>

    </div>
    <!-- side -->
    <div class="layui-side my-side">
        <div class="layui-side-scroll">
            <!-- 左侧主菜单添加选项卡监听 -->
            <ul class="layui-nav layui-nav-tree" lay-filter="side-main">
                <?php foreach($lefttree as $k=>$v): if(($v['id'] != 1)): ?>
                <li class="layui-nav-item"> 
                    <a href="javascript:;" <?php if(($v['id'] == 1)): if(strpos($v1['name'],'GameLog') !==false): ?>href-url="<?php echo url('admin/'.$v['name'],['id'=>session('partitionid')]); ?>" class="game-url"<?php elseif(strpos($v1['name'],'GameCenter') !==false): ?>href-url="<?php echo url('admin/'.$v['name'],['id'=>session('partitionid')]); ?>" class="game-url"<?php else: ?>href-url="<?php echo url('admin/'.$v['name']); ?>"<?php endif; endif; ?>><i class="layui-icon <?php echo htmlentities($v['icon']); ?>"></i><?php echo htmlentities($v['title']); ?></a>
                
                <?php if(!(empty($v['_data']) || (($v['_data'] instanceof \think\Collection || $v['_data'] instanceof \think\Paginator ) && $v['_data']->isEmpty()))): ?>
                    <dl class="layui-nav-child">
                        <?php foreach($v['_data'] as $k1=>$v1): ?>
                        <dd>
                    <?php if(empty($v1['_data']) || (($v1['_data'] instanceof \think\Collection || $v1['_data'] instanceof \think\Paginator ) && $v1['_data']->isEmpty())): ?>
                        <a href="javascript:;" <?php if(strpos($v1['name'],'GameLog') !==false): ?>href-url="<?php echo url('admin/'.$v1['name'],['id'=>session('partitionid')]); ?>"
                         class="game-url"<?php elseif(strpos($v1['name'],'GameCenter') !==false): ?>href-url="<?php echo url('admin/'.$v1['name'],['id'=>session('partitionid')]); ?>"
                         class="game-url"<?php else: ?>href-url="<?php echo url('admin/'.$v1['name']); ?>"<?php endif; ?>><i class="layui-icon"><?php echo $v1['icon']; ?></i><?php echo htmlentities($v1['title']); ?></a>
                    <?php else: ?>
                        <a href="javascript:;" class="menu_three"><i class="layui-icon"><?php echo $v1['icon']; ?></i><?php echo htmlentities($v1['title']); ?></a>
                        <ol class="layui-nav-child">
                            <?php foreach($v1['_data'] as $v2): ?>
                           <li><a href="javascript:;" <?php if(strpos($v2['name'],'GameLog') !==false): ?>href-url="<?php echo url('admin/'.$v2['name'],['id'=>session('partitionid')]); ?>" class="game-url"<?php elseif(strpos($v2['name'],'GameCenter') !==false): ?>href-url="<?php echo url('admin/'.$v2['name'],['id'=>session('partitionid')]); ?>" class="game-url"<?php else: ?>href-url="<?php echo url('admin/'.$v2['name']); ?>"<?php endif; ?>><i class="layui-icon"><?php echo $v2['icon']; ?></i><?php echo htmlentities($v2['title']); ?></a></li>
                            <?php endforeach; ?>
                        </ol>
                    <?php endif; ?>
                    </dd>
                        <?php endforeach; ?>
                    </dl>
                    <?php endif; ?>
                </li>
                <?php endif; endforeach; ?>
<!--         <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;"><i class="layui-icon"></i>游戏数据<span class="layui-nav-more"></span></a>
            <dl class="layui-nav-child">

            <dd><a href="javascript:;" class="menu_three"><i class="layui-icon"></i>金币日志<span class="layui-nav-more"></span></a>
             <ol class="layui-nav-child">
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>金币交易</a></li>
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>金币增加总表</a></li>
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>金币减少总表</a></li>
                   <li><a  href-url="demo/login.html"><i class="layui-icon"></i>绑定金币增加总表</a></li>
                   <li><a  href-url="demo/login.html"><i class="layui-icon"></i>绑定金币减少总表</a></li>
                </ol>
            </dd>

            <dd><a href="javascript:;" class="menu_three"><i class="layui-icon"></i>元宝日志<span class="layui-nav-more"></span></a>
             <ol class="layui-nav-child"  >
                   <li><a href="javascript:;" href-url="dem1111o/login.html"><i class="layui-icon"></i>元宝消费</a></li>
                   <li><a href="javascript:;" href-url="demo12/login.html"><i class="layui-icon"></i>元宝交易</a></li>
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>元宝增加</a></li>
                   <li><a  href-url="demo/login.html"><i class="layui-icon"></i>元宝减少</a></li>
                   <li><a  href-url="demo/login.html"><i class="layui-icon"></i>绑定元宝增加总表</a></li>
                   <li><a  href-url="demo/login.html"><i class="layui-icon"></i>绑定元宝减少总表</a></li>
                </ol>
            </dd>

            <dd><a href="javascript:;" class="menu_three"><i class="layui-icon"></i>物品日志<span class="layui-nav-more"></span></a>
             <ol class="layui-nav-child"  >
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>物品交易</a></li>
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>物品增加</a></li>
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>物品减少</a></li>
                   <li><a  href-url="demo/login.html"><i class="layui-icon"></i>物品变化后余多少</a></li>
                </ol>
            </dd>

            <dd><a href="javascript:;" class="menu_three"><i class="layui-icon"></i>其它日志<span class="layui-nav-more"></span></a>
             <ol class="layui-nav-child"  >
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>在线人数</a></li>
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>GM命令表</a></li>
                   <li><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>沙城工会记录</a></li>
                   <li><a  href-url="demo/login.html"><i class="layui-icon"></i>玩家等级变更记录</a></li>
                </ol>
            </dd>
                        <dd><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon"></i>登录页</a></dd>
    
                    </dl>
                </li>

                <li class="layui-nav-item"> 
                    <a href="javascript:;"><i class="layui-icon">&#xe628;</i>扩展</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" href-url="demo/login.html"><i class="layui-icon">&#xe621;</i>登录页</a></dd>
                        <dd><a href="javascript:;" href-url="demo/register.html"><i class="layui-icon">&#xe621;</i>注册页</a></dd>
                    </dl>

                </li> -->

            </ul>

        </div>
    </div>
    <!-- body -->
    <div class="layui-body my-body">
        <div class="layui-tab layui-tab-card my-tab" lay-filter="card" lay-allowClose="true">
            <ul class="layui-tab-title">
                <li class="layui-this" lay-id="1"><span><i class="layui-icon">&#xe638;</i>欢迎页</span></li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <iframe id="iframe" src="<?php echo url('admin/Index/welcome'); ?>" frameborder="0" name="iframe"></iframe>
                </div>
            </div>
        </div>
    </div>
    <!-- footer -->
    <div class="layui-footer my-footer" id="ceeee">
        <p><a href="#" target="_blank"><?php echo htmlentities($web['web']); ?>后台管理系统</a></p>
        <p>2018 © copyright 号</p>
    </div>
</div>

<!-- pay -->
<!-- <div class="my-pay-box none">
    <div><img src="/static/frame/static/image/zfb.png" alt="支付宝"><p>支付宝</p></div>
    <div><img src="/static/frame/static/image/wx.png" alt="微信"><p>微信</p></div>
</div> -->

<!-- 右键菜单 -->
<div class="my-dblclick-box none">
    <table class="layui-tab dblclick-tab" >
        <tr class="card-refresh">
            <td><i class="layui-icon layui-icon-refresh"></i>刷新当前标签</td>
        </tr>
        <tr class="card-close">
            <td><i class="layui-icon layui-icon-close"></i>关闭当前标签</td>
        </tr>
        <tr class="card-close-all">
            <td><i class="layui-icon layui-icon-close"></i>关闭所有标签</td>
        </tr>
    </table>
</div>

<script type="text/javascript" src="/static/frame/layui/layui.js"></script>
<script type="text/javascript" src="/static/frame/static/js/vip_comm.js"></script>
<script type="text/javascript">
layui.use(['layer','vip_nav'], function () {

    // 操作对象
    var layer       = layui.layer
        ,vipNav     = layui.vip_nav
        ,$          = layui.jquery;

    // 顶部左侧菜单生成 [请求地址,过滤ID,是否展开,携带参数]
    //vipNav.top_left('/static/admin/json/nav_top_left.json','side-top-left',false);
    // 主体菜单生成 [请求地址,过滤ID,是否展开,携带参数]
    //vipNav.top_left('/static/admin/json/nav_main.json','side-top-left',false);
    //vipNav.main('/static/admin/json/nav_main.json','side-main',true);

   // vipNav.top_left('/static/admin/json/nav_main.json','side-top-left',false);
    //vipNav.main('<?php echo url('index/treeMenu'); ?>','side-main',true);


//三级导航菜单

  $(".menu_three").on("click",function(){
    $(this).next('ol').toggleClass('layui-nav-itemed');
    if($(this).next('ol').hasClass('layui-nav-itemed')){

        $(this).parent().addClass('layui-thisss');
    }else{
        $(this).parent().removeClass('layui-thisss');
        $(this).next('ol').find('a').removeClass('three_this');
    }

    $("ol").on("click","li a",function(){
      $.each($(this).parent().siblings(),function(i,e){
          $(e).find("a").removeClass('three_this')
      });
        $(this).addClass('three_this');                            // 添加当前元素的样式
    });
    $('dl.layui-nav-child dd').on('click',function(){
        $(this).siblings('dd').find('ol').find('a').removeClass('three_this');
    })

  })

});
</script>
</body>
</html>